package com.yywq.service.impl;

import com.yywq.mapper.AddressMapper;
import com.yywq.pojo.Address;
import com.yywq.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: 吴磊
 * @program: yywq
 * @create: 2021-03-20 22:26
 */
@Service
public class AddressServiceImpl implements AddressService {

    @Autowired
    private AddressMapper addressMapper;


    @Override
    public List<Address> getAddressByUserId(String uid) {
        List<Address> addressList = addressMapper.getAddressByUid(uid);
        return addressList;
    }
}
